import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { DemoSlidesPage } from '../demo_h5/demo-slides/demo-slides';
import { DemoIconfontPage } from '../demo_h5/demo-iconfont/demo-iconfont';
import { DemoMenuPage } from '../demo_h5/demo-menu/demo-menu';

/**
 * Generated class for the DemoH5CatalogPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-demo-h5-catalog',
  templateUrl: 'demo-h5-catalog.html',
})
export class DemoH5CatalogPage {
  listData = [];
  constructor(public navCtrl: NavController, public navParams: NavParams) {
    this.listData = [
      { title: 'alert_demo', target: 'DemoAlertPage' },
      { title: 'list_demo', target: 'DemoListPage' },
      { title: 'tabs_demo', target: 'DemoTabsPage' },
      { title: 'toast_demo', target: 'DemoToastPage' },
      { title: 'slides_demo', target: 'DemoSlidesPage' },
      { title: 'iconfont_demo', target: 'DemoIconfontPage' },
      { title: 'menu_demo', target: 'DemoMenuPage' },
      { title: 'jsmind_demo', target: 'JsmindPage' }
    ];
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad DemoH5CatalogPage');
  }

  gopage(pagestr) {
    this.navCtrl.push(pagestr);
  }
}
